﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ATIONTreeView.aspx.cs" Inherits="GPCSC.Web.SYS_ORG.ATIONTreeView" %>
<%@ Register Assembly="NickLee.Web.UI" Namespace="NickLee.Web.UI" TagPrefix="nicklee" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
        <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />

     <script src="../Scripts/jquery-1.6.2.min.js" type="text/jscript" language="javascript"></script>
     <%-- <link href="../Css/main.css" rel="stylesheet" type="text/css" />--%>
     <script type="text/javascript">
		function baseTreeSelect(sender, eventArgs)
		{
			if (eventArgs.get_node().get_value()!=null)
			{
				if (eventArgs.get_node().get_target()=="POST")
				{
				    window.ATIONList.location.href="./ATIONList.aspx?Type=POST&ID="+eventArgs.get_node().get_id()+"&Text="+escape(eventArgs.get_node().get_text());	
				}
				else if (eventArgs.get_node().get_target()=="USER")
				{
					window.ATIONList.location.href="./ATIONList.aspx?Type=USER&ID="+eventArgs.get_node().get_id()+"&Text="+escape(eventArgs.get_node().get_text());
				}
				else if (eventArgs.get_node().get_target()=="ROLE")
				{
					window.ATIONList.location.href="./ATIONList.aspx?Type=ROLE&ID="+eventArgs.get_node().get_id()+"&Text="+escape(eventArgs.get_node().get_text());	
				}
				else if (eventArgs.get_node().get_target()=="Depart")
				{
					window.ATIONList.location.href="./ATIONList.aspx?Type=Depart&ID="+eventArgs.get_node().get_id()+"&Text="+escape(eventArgs.get_node().get_text());	
				}
				else
				{
				   //否则不做处理
				}
			}
		}
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
<%--    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29" background="../images/1.gif"><table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="300" class="tittle">当前位置：角色权限</td>
      </tr>
    </table></td>
  </tr>
</table>--%>
    <nicklee:Splitter runat="server" ID="LSplitter" LayoutId="ClassicOutlook" FillHeight="true"
        FillWidth="true" Width="100%" ImagesBaseUrl="../images/splitter/">
        <Layouts>
            <nicklee:SplitterLayout ID="ClassicOutlook">
                <Panes Orientation="Horizontal"  >
                    <nicklee:SplitterPane PaneContentId="TreeViewContent" Width="38.2%" MinWidth="500"
                        MaxWidth="800" CssClass="SplitterPane" AllowScrolling="true">
                        
                    </nicklee:SplitterPane>
                    <nicklee:SplitterPane PaneContentId="ClassicGridContent" >
                        
                    </nicklee:SplitterPane>
                </Panes>
            </nicklee:SplitterLayout>
            
        </Layouts>
        <Content>
           
            <nicklee:SplitterPaneContent ID="TreeViewContent">

  <nicklee:TreeView ID="baseTree" Height="96%"  Width="100%" EnableViewState="true" 
                    KeyboardEnabled="true" MultipleSelectEnabled="False" ShowLines="true" CssClass="TreeViewMargin"
                    NodeCssClass="TreeNode" SelectedNodeCssClass="SelectedTreeNode" MultipleSelectedNodeCssClass="MultipleSelectedTreeNode"
                    HoverNodeCssClass="HoverTreeNode" NodeEditCssClass="NodeEdit" CutNodeCssClass="CutTreeNode"
                    MarginWidth="24" DefaultMarginImageWidth="24" DefaultMarginImageHeight="20" LineImageWidth="19"
                    LineImageHeight="20" DefaultImageWidth="16" DefaultImageHeight="16" NodeLabelPadding="3"
                    ParentNodeImageUrl="folder.gif" LeafNodeImageUrl="folder.gif" CollapseImageUrl="exp.gif"
                    ExpandImageUrl="col.gif" ExpandCollapseImageWidth="19" ExpandCollapseImageHeight="20"
                    ImagesBaseUrl="../images/" LineImagesFolderUrl="../images/"
                    runat="server"   ExpandSinglePath="False"  style=" cursor:pointer;">
                    <ClientEvents>
                        <NodeSelect EventHandler="baseTreeSelect" />
                    </ClientEvents>
                </nicklee:TreeView>
            </nicklee:SplitterPaneContent>
            <nicklee:SplitterPaneContent ID="ClassicGridContent">
                <div style="width: 100%; height: 100%">
                    <iframe frameborder="0" id="ATIONList" name="ATIONList" scrolling="auto" src="" style="width: 100%;
                        height: 100%;"></iframe>
                </div>
            </nicklee:SplitterPaneContent>
          
        </Content>
    </nicklee:Splitter>
    </div>
    </form>
</body>
 <script type="text/javascript">
        $(document).ready(function()
          {
                document.getElementById("LSplitter").style.height=document.body.clientHeight;
          });
    </script>
    
    <script type="text/javascript">
        //Splitter控件使用脚本
        // Forces the treeview to adjust to the new size of its container          
        function resizeTree(DomElementId, NewPaneHeight, NewPaneWidth) {

        }
        // Forces the grid to adjust to the new size of its container          
        function resizeClassicGrid(DomElementId, NewPaneHeight, NewPaneWidth) {

        }

        // Forces the grid to adjust to the new size of its container          
        function resizeTemplatedGrid(DomElementId, NewPaneHeight, NewPaneWidth) {

        }  
    </script>
</html>

